<div id="ang-tree">
    <div class="title" id="title" ng-click="setTitle($event)" >{{treedata.title}}</div>
    <treecontrol class="tree-dark" tree-model="treedata.data" options="treeOptions"  style="background-color: #fff;" on-selection="showSelected(node)">
                         <span ng-switch="" on="node.type">
                             <span ng-switch-when="folder" class="glyphicon glyphicon-folder-open"
                                   aria-hidden="true"></span>
                             <span ng-switch-when="pic" class="glyphicon glyphicon-picture" aria-hidden="true"></span>
                             <span ng-switch-when="doc" class="glyphicon glyphicon-file" aria-hidden="true"></span>
                             <span ng-switch-when="file" class="glyphicon glyphicon-floppy-disk"
                                   aria-hidden="true"></span>
                             <span ng-switch-when="movie" class="glyphicon glyphicon-film" aria-hidden="true"></span>
                             <span ng-switch-when="email" class="glyphicon glyphicon-envelope"
                                   aria-hidden="true"></span>
                             <span ng-switch-when="home" class="glyphicon glyphicon-home" aria-hidden="true"></span>
                             <span ng-switch-when="trash" class="glyphicon glyphicon-trash" aria-hidden="true"></span>
                         </span>
        <a ng-click="buttonClick($event, node)">{{node.label}}</a>
    </treecontrol>
    <!--{{lastClicked}}-->
    <ul id="menu" class="animated fadeIn">
        <div ng-if="title!=''">{{title.name}}的设置</div>
        <li ng-click="addOneList(title.node)">{{title.addList}}</li>
        <li ng-click="delOneList(title.node)">{{title.delList}}</li>
        <li ng-click="addOneNote(title.node)">{{title.addNote}}</li>
        <li ng-click="delOneNote(title.node)">{{title.delNote}}</li>
        <li ng-click="changeName(title.node)">{{title.changeN}}</li>
        <!--<li>管理权限</li>-->
    </ul>
</div>

